/**
 * Created by yqj on 2017/2/3.
 */
const SET_LIST = (state, { type, list }) => {
  state.lists[type] = list
}
const SET_ACTIVE_TYPE = (state, { type }) => {
  state.activeType = type
}
const SET_TOTAL_SIZE = (state, { totalSize }) => {
  state.totalSize = totalSize
}
const SET_CURRENT_PAGE = (state, { currentPage }) => {
  state.currentPage = currentPage
}
const SET_DICTIONARY = (state, { type, list }) => {
  state.dictionary[type] = list
}

export const mutations = {
  SET_LIST,
  SET_ACTIVE_TYPE,
  SET_TOTAL_SIZE,
  SET_CURRENT_PAGE,
  SET_DICTIONARY
}
